package Object_4;

public class Test {
    public static void eat(Son son){
        son.eat();

    }
    public static void main(String[] args) {
//        Son son = new Son();
//        son.eat();

//        son = new Xiaotang();
//        son.eat();
//
//        son = new Yuanyuan();
//        son.eat();

        eat(new Son());
        eat(new Xiaotang());
        eat(new Yuanyuan());




    }
}
